#!/usr/bin/python

numbers = [4,2,5,7,2,1]
total = len(numbers)
sum = 0.0
for i in numbers:
	sum = sum + i
print sum
average = sum / total
print average
